package salary.calculation.common.response;

import salary.calculation.common.enumerate.IResponseEnum;

public class ErrorResponse extends BaseResponse{

    public ErrorResponse(int code, String msg) {
        super(code, msg);
    }

    public ErrorResponse(IResponseEnum responseEnum) {
        super(responseEnum);
    }

    public static ErrorResponse newInstance(int code, String msg) {
        return new ErrorResponse(code, msg);
    }

    public static ErrorResponse newInstance(IResponseEnum responseEnum) {
        return new ErrorResponse(responseEnum);
    }

}
